<template>
	<view class="">
		<wanl-empty text="没有找到团队" v-if="!data"></wanl-empty>

		<view class="wanl-order-list" v-else>
			<view class="inTot">
				<view class="text">￥{{ data.all_shopsale }}</view>
				<view class="text1">总销售额</view>
			</view>
			<view class="shopLst">
				<view class="list" v-for="(item, index) in data.list" :key="index">
					<view class="top">
						<view class="">{{ item.shopname }}</view>
						<view class="" style="color: #FF0000; font-weight: 400;">{{ item.shop_sale }}</view>
					</view>
					<view class="under">
						<view class="">{{ item.shop_state == 0 ? '个人' : item.shop_state == 1 ? '企业' : item.shop_state == 2 ? '旗舰' : '' }}</view>
						<view class="">分店销售额</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			data: {},
		
		};
	},
	onLoad(options) {
		this.team();
	},
	methods: {
		//获取订单列表
		async team() {
			const res = await this.$api.post({
				url: '/wanlshop/dshapi/my_shop',
				data: {
					page: 1,
					pagesize: 10,
				},
			});
			console.log('++++++++++++++++++++++++++++++++++++++++++++11111111111 :>> ', res);
			this.data = res;
			
		},
	},
};
</script>

<style lang="scss" scoped>
page {
	height: 100%;
}
.inTot {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 690rpx;
	height: 144rpx;

	background: #ffffff;
	box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.05);
	border-radius: 10rpx;
	margin: 0 auto;
	.text {
		font-size: 48rpx;
		font-family: PingFangSC;
		font-weight: 700;
		color: #333333;
	}
	.text1 {
		font-size: 30rpx;
		font-family: PingFangSC;
		font-weight: 400;
		color: #333333;
	}
}
.shopLst {
	width: 690rpx;
	//height: 394rpx;
	background: #ffffff;
	box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.05);
	border-radius: 10rpx;
	margin: 0 auto;
	margin-top: 20rpx;
	padding: 0 20rpx;
	.list {
		height: 100rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		border-bottom: 1rpx solid #f0f0f0;

		.top {
			display: flex;
			justify-content: space-between;
			height: 25rpx;
			font-size: 26rpx;
			font-family: PingFangSC;
			font-weight: 700;
			color: #333333;
			line-height: 25rpx;
		}
		.under {
			display: flex;
			justify-content: space-between;
			height: 20rpx;
			font-size: 20rpx;
			font-family: PingFangSC;
			font-weight: 400;
			color: #c4c4c4;
			line-height: 20rpx;
		}
	}
}
</style>
